var app = getApp();
Component({
  properties: {
        itemout: Object,
        params : Object,
    },

    data: {
        showstatus : false,
    },
    options : {
        addGlobalClass : true,
    },
    methods: {
        navigateto : function( e ){
            var self = this;
            if( self.data.params.indexmes == 1 || !wx.requestSubscribeMessage){
                app.com.navigateto( e );
            }else{
                wx.requestSubscribeMessage({
                    tmplIds : self.data.params.submess,
                    complete : function(){
                        app.com.navigateto( e );
                    }
                })
            }
        }
    }

})